<!DOCTYPE HTML>
<html lang="en-US">
<head>
    <meta charset="UTF-8">
    <title></title>
    <script src="http://code.jquery.com/jquery-1.11.0.min.js"></script>
    <script src="http://code.jquery.com/jquery-migrate-1.2.1.min.js"></script>
    <script type="text/javascript" src="../src/jquery.iframeupload.js"></script>
    <script type="text/javascript">
    $(function(){
         $('img[action]').iframeUpload({
            multiple: true,
            onChange: function(file, ext){
                console.log(file, ext);
            },
            onSubmit: function(file, ext){
                console.log(file, ext);
            },
            onComplete: function(file, response){
                console.log(file, response);
            }
         });
    });
    </script>
</head>
<body>
    
</body>
<img src="#" name="file1" action="upload.php" data-id="1" />
</html>